package org.openapitools.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.model.InlineResponse2003DataTableBodies;
import org.openapitools.model.InlineResponse2003DataTableHeaders;
import org.openapitools.jackson.nullable.JsonNullable;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * InlineResponse2003DataTable
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-24T17:27:43.335+08:00[Asia/Shanghai]")

public class InlineResponse2003DataTable   {
  @JsonProperty("headers")
  @Valid
  private List<InlineResponse2003DataTableHeaders> headers = new ArrayList<>();

  @JsonProperty("bodies")
  @Valid
  private List<InlineResponse2003DataTableBodies> bodies = new ArrayList<>();

  public InlineResponse2003DataTable headers(List<InlineResponse2003DataTableHeaders> headers) {
    this.headers = headers;
    return this;
  }

  public InlineResponse2003DataTable addHeadersItem(InlineResponse2003DataTableHeaders headersItem) {
    this.headers.add(headersItem);
    return this;
  }

  /**
   * Get headers
   * @return headers
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull

  @Valid

  public List<InlineResponse2003DataTableHeaders> getHeaders() {
    return headers;
  }

  public void setHeaders(List<InlineResponse2003DataTableHeaders> headers) {
    this.headers = headers;
  }

  public InlineResponse2003DataTable bodies(List<InlineResponse2003DataTableBodies> bodies) {
    this.bodies = bodies;
    return this;
  }

  public InlineResponse2003DataTable addBodiesItem(InlineResponse2003DataTableBodies bodiesItem) {
    this.bodies.add(bodiesItem);
    return this;
  }

  /**
   * Get bodies
   * @return bodies
  */
  @ApiModelProperty(required = true, value = "")
  @NotNull

  @Valid

  public List<InlineResponse2003DataTableBodies> getBodies() {
    return bodies;
  }

  public void setBodies(List<InlineResponse2003DataTableBodies> bodies) {
    this.bodies = bodies;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InlineResponse2003DataTable inlineResponse2003DataTable = (InlineResponse2003DataTable) o;
    return Objects.equals(this.headers, inlineResponse2003DataTable.headers) &&
        Objects.equals(this.bodies, inlineResponse2003DataTable.bodies);
  }

  @Override
  public int hashCode() {
    return Objects.hash(headers, bodies);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InlineResponse2003DataTable {\n");
    
    sb.append("    headers: ").append(toIndentedString(headers)).append("\n");
    sb.append("    bodies: ").append(toIndentedString(bodies)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

